package com.marry.blog.dao;

import com.marry.blog.entity.BlogType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ml
 * @create 2017-07-31--12:59
 */
public interface BlogTypeDao {

    Integer addBlogType(BlogType blogType);

    Integer deleteBlogType(Integer id);

    Integer updateBlogType(BlogType blogType);

    BlogType getById(Integer id);

    List<BlogType> listByPage(@Param("start") Integer start, @Param("end") Integer end);

    Long getTotal();

}
